package main

import (
	"fmt"
)
type A struct {a int}
type B struct {a, b int}

type C struct {A; B}

func main() {
	c := new(C)
	//会报错
	//c.a = 11
	c.A.a = 11
	c.b = 22
	fmt.Println(c,c.b,c.A.a)
}
